

        <g:set var="entityName" value="${message(code: 'organize.label', default: 'Organize')}" />
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="name" title="${message(code: 'organize.name.label', default: 'Name')}" />
                        
                            <g:sortableColumn property="shortName" title="${message(code: 'organize.shortName.label', default: 'Short Name')}" />
                        
                            <th><g:message code="organize.parent.label" default="Parent" /></th>
                            <th></th>
                   	    
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${organizeInstanceList}" status="i" var="organizeInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="list" id="${organizeInstance.id}">${fieldValue(bean: organizeInstance, field: "name")}</g:link></td>
                        
                            <td>${fieldValue(bean: organizeInstance, field: "shortName")}</td>
                        
                            <td>${fieldValue(bean: organizeInstance, field: "parent")}</td>
                             <td class="operate">
                                <x:operate width="200">
                                    <g:link  action="edit" id="${organizeInstance.id}"><g:message code="default.button.edit.label" default="修改" /></g:link>
                                    <g:link  action="delete" id="${organizeInstance.id}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"><g:message code="default.button.delete.label" default="delete" /></g:link>
                                    <g:link  action="create" id="${organizeInstance.id}">添加下属部门</g:link>
                                </x:operate>
                                </td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${organizeInstanceTotal}" />
            </div>
